import 'babel-polyfill'
import promise from 'es6-promise' // 兼容 Promise
import Vue from 'vue'
import VueRouter from 'vue-router'
import member from './member.vue'

promise.polyfill()

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Info',
    component: member
  },
  {
    path: '/memLook',
    name: 'MemLook',
    component: function () { return import('./memLook.vue') }
  },
  {
    path: '/memShenqing',
    name: 'MemShenqing',
    component: function () { return import('./memShenqing.vue') }
  },
  {
    path: '/memLike',
    name: 'MemLike',
    component: function () { return import('./memLike.vue') }
  },
  {
    path: '/memBaoming',
    name: 'MemBaoming',
    component: function () { return import('./memBaoming.vue') }
  },
  {
    path: '/memLikeCom',
    name: 'MemLikeCom',
    component: function () { return import('./memLikeCom.vue') }
  },
  {
    path: '/memChangepwd',
    name: 'MemChangepwd',
    component: function () { return import('./memChangepwd.vue') }
  },
]

const router = new VueRouter({
  routes
})

export default router
